<link rel="stylesheet" type="text/css" href="../css/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../css/themes/icon.css">

<div id="panel-department" data-options="border:false;width:100%">
  	<div class="well well-small" style="margin-left: 5px;margin-top: 5px">
		
		<p>
			<span class="badge">提示</span>
			在此你可以对<span class="label-info"><strong>组织功能</strong></span>进行编辑!
		</p>
	</div>
		
    <div id="tb-department" style="padding:2px 0">
		<table cellpadding="0" cellspacing="0"> 
			<tr>
				<td style="padding-left:2px">
			
				</td>
			</tr>
		</table>
	</div>
	<table id="department-dg" class="easyui-treegrid dg-list" 
		data-options="rownumbers:true,
		animate: true,
		collapsible: true,					
		striped:true,
		border:true,
		//singleSelect:false,
		idField: 'id',
		treeField: 'name',					
		fitColumns: true,
		checkOnSelect:true,
		selectOnCheck:true,
		toolbar:'#tb-department'">
		
		<thead>						
			<tr>
				<th field="ck" checkbox="true" ></th>
				<th field="name" width="200">组织名称</th>
				<th field="id" width="40">id</th>
				<th field="identify" width="60" align="right">组织编码</th>
				<th field="ename" width="60" align="right">英文名称</th>
				<th field="shortName" width="60" align="right">部门简称</th>
				<th field="bizcode" width="60" align="right">部门编码</th>
				<th field="fullBizcode" width="60" align="right">完整编码</th>
				<th field="iconCls" width="60" align="right">部门图标</th>
				<th field="tel" width="60" align="right">电话</th>
				<th field="fax" width="60" align="right">传真</th>
				<th field="comment" width="60" align="right">备注</th>							
			</tr>
		</thead>
		
	</table>
	<div id='department-extend-win'  title="部门扩展信息"></div>
	
  <div id='department-win' class="easyui-window" style="width:600px;height:400px;" 
  	data-options="modal:true,closed:true" >
  		<div class="easyui-layout" data-options="fit:true,border:false">
			<div data-options="region:'center',border:false" title="" style="overflow: hidden;padding: 10px;">
			<div id="tb-departmentedit" style="height:auto;width:auto">
				<div style="margin-bottom:5px">	
							
				</div>  		
		    </div>
			<form id="dept-form" method="post">		
				<fieldset>								
					<input name="id" id="id"  type="hidden"/>
					<input name="parentName" id="parentName"  type="hidden"/>
					<input name="created" id="created"  type="hidden"/>
					<input name="creater" id="creater"  type="hidden"/>
					<input name="status" id="status"  type="hidden"/>
					 <table>
						 <tr>
						    <th>部门名称</th>
							<td><input name="name" id="name" placeholder="请输入组织名称" class="easyui-textbox easyui-validatebox" type="text" data-options="required:true"/></td>
							<th>组织编码</th>
							<td><input name="identify" id="identify" type="text"  class="easyui-textbox easyui-validatebox" data-options="required:true"/></td>
						 </tr>
						 <tr>
						    <th>部门编码</th>
							<td><input name="bizcode" id="bizcode" type="text" class="easyui-textbox easyui-validatebox"/></td>
							<th>完整编码</th>
							<td><input id="fullBizcode" name="fullBizcode" type="text" class="easyui-textbox easyui-validatebox" data-options="disabled:true,editable:false"/></td>
						 </tr>
						 <tr>
						    <th>部门全称</th>
							<td><input name="longName" id="longName" type="text" class="easyui-textbox easyui-validatebox"/></td>
							<th>简称</th>
							<td><input id="shortName" name="shortName" type="text" class="easyui-textbox easyui-validatebox"/></td>
						 </tr>
						 <tr>
						    <th>英文名称</th>
							<td><input id="eName" name="eName" type="text" class="easyui-textbox easyui-validatebox"/></td>
							<th>排序编号</th>
							<td><input id="sortedid" name="sortedid" type="text" class="easyui-textbox"/></td>
						 </tr>
						  <tr>
						    <th>上层组织</th>
							<td><input id="parentid" name="parentid" type="text" class="easyui-textbox easyui-validatebox"/></td>
							<th>组织图标</th>
							<td><input id=iconCls name="iconCls" type="text" class="easyui-textbox"/></td>
						 </tr>
						 <tr>
						    <th>电话</th>
							<td><input id="tel" name="tel" type="text" class="easyui-textbox easyui-validatebox"/></td>
							<th>默认站点</th>
							<td><input id=siteName name="siteName" type="text" class="easyui-textbox easyui-validatebox"/></td>
						 </tr>
						 <tr>
							<th>描述</th>
							<td colspan="3"><textarea class="easyui-textbox" name="description"  style="width: 420px;height: 50px;"></textarea></td>
						</tr>
					 </table>
				</fieldset>
			</form>
		</div>
	</div>
</div> 

 
<script>

requirejs(['departmentModule','domReady!'],function(dept,doc){
	dept.init(doc);
});	

</script>

